<extend name="layout/main" />

<block name="header">
   <style type="text/css">
        .xw-searchQuery{ display: none; }
   </style>
</block>

<block name="content">
    <div class="wrapper">
		<div class="panel-heading">
			<control:search id="searchs" />
		</div>
		<div class="content" style="padding: 0;">
			<div style="height: 100%;width:100%;float: left;">
				<iframe id="iframe" src="" ></iframe>
			</div>
		</div>
	</div>
</block>


<block name="js">
   <script type="text/javascript">
    var  page = (function(ns){
        
        //页面初始化
        ns.init=function(){
			ns.query();
        }
        
        //搜索事件
		ns.query = function() {
			var shop_id = searchs.getData()[0]['value'];
			$("#iframe").attr('src','/index.php/modules/shop/param/edit?mode=2&oid='+shop_id);
		}
   
        
        return ns;
    }({}));
    
    //加载当前页面需要的控件和配置
    $(function(){  page.init();  });
   </script>
</block>


